package top.mcwebsite.markdown.utils

import androidx.compose.runtime.snapshots.SnapshotStateMap

fun <K, V> Map<K, V>.toStateMap(): SnapshotStateMap<K, V> {
    return SnapshotStateMap<K, V>().apply { putAll(this@toStateMap) }
}